home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
shells
/
scsh-0.4
/
scsh-0
/
scsh-0.4.2
/
scsh
/
nextbs.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-10-13
|
308b
|
18 lines
/* Losing reimplimentation of Posix calls for NextSTEP. */
#include <stdio.h>
#include <sys/types.h>
#include <sgtty.h>
int tcsetpgrp1(int fd, int pid)
{
int i;
return ioctl(0, TIOCSPGRP, &i);
}
int tcgetpgrp1(int fd)
{
int i, j;
return (ioctl(0, TIOCGPGRP, &i) == -1) ? -1 : i;
}